package com.fsj.admin.system.service.impl;

import com.fsj.admin.system.dao.TUserDao;
import com.fsj.admin.system.domain.ShopDO;
import com.fsj.admin.system.domain.TUserDO;
import com.fsj.admin.system.service.TUserService;
import com.fsj.admin.system.vo.InviteWaterVO;
import com.fsj.admin.system.vo.TUserInfoVO;
import com.fsj.admin.system.vo.UserChildsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class TUserServiceImpl implements TUserService {
	@Autowired
	private TUserDao userDao;
	
	@Override
	public TUserDO get(Long id){
		return userDao.get(id);
	}
	
	@Override
	public List<TUserDO> list(Map<String, Object> map){
		return userDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return userDao.count(map);
	}
	
	@Override
	public int save(TUserDO user){
		return userDao.save(user);
	}
	
	@Override
	public int update(TUserDO user){
		return userDao.update(user);
	}
	
	@Override
	public int remove(Long id){
		return userDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return userDao.batchRemove(ids);
	}

	@Override
	public List<TUserInfoVO> getUserInfo(Map<String, Object> map) {
		return userDao.getUserInfo(map);
	}

	@Override
	public List<UserChildsVO> getUserChilds(Map<String, Object> map) {
		return userDao.getUserChilds(map);
	}

	@Override
	public int countUserChilds(Map<String, Object> map) {
		return userDao.countUserChilds(map);
	}

	@Override
	public List<UserChildsVO> getShopChilds(Map<String, Object> map) {
		return userDao.getShopChilds(map);
	}

	@Override
	public TUserDO getUserByUserName(String userName) {
		return userDao.getUserByUserName(userName);
	}

	@Override
	public List<InviteWaterVO> getInviteWater(Map<String, Object> map) {
		return userDao.getInviteWater(map);
	}

	@Override
	public int countInviteWater(Map<String, Object> map) {
		return userDao.countInviteWater(map);
	}

	@Override
	public int countUserInfo(Map<String, Object> map) {
		return userDao.countUserInfo(map);
	}

}
